<?php

namespace IDock\Insurance\TAIC\Request;

use IDock\Insurance\TAIC\Response\RenewalInquiryResponse;
use IDock\Visitor\RenewalInquiryVisitor;

class RenewalInquiryRequest extends AllTAICRequest
{
    protected $route = 'access/car/renewalQuery.mvc';

    protected $response = RenewalInquiryResponse::class;

    protected $urlTip = '续保查询';

    /*** @var  RenewalInquiryVisitor $visitor */
    protected $visitor;

    public function generate(): array
    {
        return [
            'body' => [
                'base' => [
                    'policyNo' => '',
                    'licenseNo' => $this->visitor->licenseNo,
                    'frameNo' => $this->visitor->vin,
                    'engineNo' => $this->visitor->engineNo,
                ]
            ]];
    }
}